package staticFactory.a1;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {
    public static void main(String[] args) {
        //1.AppliocationContext
        ApplicationContext ac=
                new ClassPathXmlApplicationContext("applicationContext.xml");
        Student t=ac.getBean("s1", Student.class);
        System.out.println(t);
    }
}
